# -*- coding = utf-8 -*-
# @Time : 2021/4/29 15:00
# @File :blog.py
# @Software:PyCharm
from flask import Flask
from admin import admin_blue
from user import user_blue
# from peewee import *
#
# db = MySQLDatabase('msg',host ='127.0.0.1',user='root',passwd='9953001')
# db.connect()
#
#
# class BaseModel(Model):
#     class Meta:
#         database = db  # 每一个继承BaseModel类的子类都是连接db表
#
#
# class user(BaseModel):
#     mobile = CharField()
#     password = CharField()
#     email = CharField()
#
# class guanli(BaseModel):
#     mobilegl = CharField()
#     passwordgl = CharField()
#     emailgl = CharField()
#
# user.create_table()
#
# guanli.create_table()

app = Flask(__name__)
app.secret_key = 'please-generate-a-random-secret_key'

app.register_blueprint(admin_blue)
app.register_blueprint(user_blue)


if __name__ == '__main__':
    app.run(debug=True)

#注册蓝图




